#include <PhysicsServer.h>
Public Member Functions | |
| virtual | ~PhysicsServer () |
| bool | init (int groundSizeX, int groundSizeY) |
| void | shutdown () |
| void | setCrashId (int soundId) |
| bool | registerClient (PhysicsClient *client) |
| bool | update (double step) |
Static Public Member Functions | |
| static PhysicsServer * | getInstance () |
| static void | collisionCallback (void *data, dGeomID o1, dGeomID o2) |
Protected Attributes | |
| int | sound_id |
| int | kacKez |
| dWorldID | _world |
| dSpaceID | _space |
| dJointGroupID | _contactgroup |
| dSpaceID | _envSpace |
| dGeomID | _ground |
| vector< dGeomID > | crashedGeomIds |
Private Member Functions | |
| PhysicsServer () | |
| void | checkCollision (void *data, dGeomID o1, dGeomID o2) |
Private Attributes | |
| vector< PhysicsClient * > | _clientList |
Static Private Attributes | |
| static PhysicsServer | _instance |
Definition at line 4 of file PhysicsServer.h.
|
|
A destructor. Definition at line 14 of file PhysicsServer.cpp. References shutdown(). |
|
|
A constructor. Definition at line 5 of file PhysicsServer.cpp. |
|
||||||||||||||||
|
Definition at line 105 of file PhysicsServer.cpp. References _clientList, _ground, collisionCallback(), crashedGeomIds, and sound_id. Referenced by collisionCallback(). |
|
||||||||||||||||
|
a static member taking three argument and returning void.
Definition at line 94 of file PhysicsServer.cpp. References checkCollision(). Referenced by checkCollision(), and update(). |
|
|
Definition at line 43 of file PhysicsServer.h. References _instance. Referenced by AnimationWindow::createCarPhysics(). |
|
||||||||||||
|
a normal member taking two arguments and returning a bool value.
Definition at line 20 of file PhysicsServer.cpp. References _contactgroup, _envSpace, _ground, _space, and _world. |
|
|
a normal member taking one argument and returning a bool value.
Definition at line 79 of file PhysicsServer.cpp. References _clientList, _envSpace, _space, _world, and PhysicsClient::init(). Referenced by AnimationWindow::createCarPhysics(). |
|
|
Definition at line 231 of file PhysicsServer.cpp. References sound_id. |
|
|
a normal member. destroy physical world, space and joint groups Definition at line 52 of file PhysicsServer.cpp. References _clientList, _contactgroup, _space, and _world. Referenced by ~PhysicsServer(). |
|
|
a normal member taking one argument and returning a bool value.
Definition at line 206 of file PhysicsServer.cpp. References _clientList, _space, _world, and collisionCallback(). |
|
|
a private member. list of physical clients Definition at line 90 of file PhysicsServer.h. Referenced by checkCollision(), registerClient(), shutdown(), and update(). |
|
|
Definition at line 67 of file PhysicsServer.h. Referenced by init(), and shutdown(). |
|
|
Definition at line 68 of file PhysicsServer.h. Referenced by init(), and registerClient(). |
|
|
Definition at line 69 of file PhysicsServer.h. Referenced by checkCollision(), and init(). |
|
|
Definition at line 83 of file PhysicsServer.h. Referenced by getInstance(). |
|
|
a protected variable. id of the physical space Definition at line 66 of file PhysicsServer.h. Referenced by init(), registerClient(), shutdown(), and update(). |
|
|
a protected variable. id of the physical world Definition at line 61 of file PhysicsServer.h. Referenced by init(), registerClient(), shutdown(), and update(). |
|
|
Definition at line 71 of file PhysicsServer.h. Referenced by checkCollision(). |
|
|
Definition at line 55 of file PhysicsServer.h. |
|
|
Definition at line 54 of file PhysicsServer.h. Referenced by checkCollision(), and setCrashId(). |
1.4.6-NO